		$.ajax({
				type:"get",
				url:"../../json/personal.json",
				async:false, 
				dataType:"json",
				data:{},
				success:function(res){
					JsonData = res;
				}
				
			});

		function Template(no,nick_name,head_portrait,guest_number){
				var tr = document.createElement("tr");
				var str ='<td>'+no+'</td>'+
					'<td><img src="'+head_portrait+'" ></td>'+
					'<td>'+nick_name+'</td>'+
					'<td>'+guest_number+'位宾客</td>';

				tr.innerHTML = str;
				return tr;
			}
					
			window.onload=function(){
				
				var tbody = document.getElementsByTagName("tbody")[0];
				var TR = tbody.rows;
					
//              	console.log(JsonData);	
                var so= JsonData;
                
                function soso(){
//              console.log(so);
               	 function sortprice(a,b){  
                	if (parseInt(a.guest_number)> parseInt(b.guest_number)) {
			              return -1;
			          }else if(parseInt(a.guest_number)< parseInt(b.guest_number)){
			              return 1
			          }else{
			             return 0;
			         }
			        }
				 so.sort(sortprice);
				 
				 var arr = [];
					for(var j of TR){
						arr.push(j.cells[0].innerText);
					}
					
					var index = 0;
					for(var k in so){
						index++;
						
						var m0 = JsonData[k];
						var tr = Template(index,m0.nick_name,m0.head_portrait,m0.guest_number);
						tbody.appendChild(tr);
					}
				 
               }
               soso(); 

			}